package com.useeinfo.oa.modules.threadUtil.thread;

import com.useeinfo.oa.modules.base.biz.DictInfoBiz;
import com.useeinfo.oa.modules.base.entity.Enterprise;
import org.apache.poi.ss.usermodel.Workbook;

/**
 * @Auther: xudong.sun
 * @Date: 2019/2/25 10:36
 * @Description:
 */
public class ImportDictThread extends Thread {

    private DictInfoBiz dictInfoBiz;
    private Workbook wb;
    private Enterprise enterprise;

    public ImportDictThread(DictInfoBiz dictInfoBiz, Workbook wb, Enterprise enterprise) {
        this.dictInfoBiz = dictInfoBiz;
        this.wb = wb;
        this.enterprise = enterprise;
    }

    @Override
    public synchronized void run() {
        dictInfoBiz.importDict(wb, enterprise);
    }
}
